package com.mtf.redis.subscribe;

import redis.clients.jedis.JedisPubSub;

/**
 * @Author matengfei
 * @Date 2024/7/3 18:05
 * @PackageName:com.mtf.redis.subscribe
 * @ClassName: RedisSubscriber
 * @Description: Redis消息订阅者
 * @Version 1.0
 */
public class RedisSubscriber extends JedisPubSub {
    @Override
    public void onMessage(String channel, String message) {
        System.out.println("Received message: " + message + " from channel: " + channel);
    }
}
